package hmac

import (
	"crypto/hmac"
	"crypto/md5"
)

// HmacMd5 生成HMAC-MD5摘要
func HmacMd5(data, key string, opts ...string) ([]byte, error) {
	hash := hmac.New(md5.New, []byte(key))
	hash.Write([]byte(data))
	return hash.Sum(nil), nil
}
